package com.rc.evcharger.model.order;

import com.rc.evcharger.common.base.BaseModel;

import java.math.BigDecimal;
import java.util.Date;

public class OrderDetail extends BaseModel {
    private Long orderDetailId;

    private String tenantCode;

    private Long orderId;

    private String orderNum;

    private Long memberId;

    private String outOrderNum;

    private Date beginTime;

    private Date endTime;

    private BigDecimal soc;

    private BigDecimal power;

    private BigDecimal servicePrice;

    private BigDecimal serviceAmount;

    private BigDecimal elecPrice;

    private BigDecimal elecAmount;

    private BigDecimal chargeAmount;

    private String remark;

    private String createdBy;

    private Date createdTime;

    private String lastUpdatedBy;

    private Date lastUpdatedTime;

    public OrderDetail() {
    }

    public OrderDetail(Date beginTime,
                       Date endTime,
                       BigDecimal soc,
                       BigDecimal power,
                       BigDecimal chargeAmount,
                       BigDecimal servicePrice,
                       BigDecimal serviceAmount,
                       BigDecimal basePrice,
                       Long orderId,
                       BigDecimal elecAmount) {
        this.setCreatedTime(new Date());
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.soc = soc;
        this.power = power;
        this.chargeAmount = chargeAmount;
        this.servicePrice = servicePrice;
        this.serviceAmount = serviceAmount;
        this.elecPrice = basePrice;
        this.orderId = orderId;
        this.elecAmount = elecAmount;
    }

    public Long getOrderDetailId() {
        return orderDetailId;
    }

    public void setOrderDetailId(Long orderDetailId) {
        this.orderDetailId = orderDetailId;
    }

    public String getTenantCode() {
        return tenantCode;
    }

    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getOutOrderNum() {
        return outOrderNum;
    }

    public void setOutOrderNum(String outOrderNum) {
        this.outOrderNum = outOrderNum;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public BigDecimal getSoc() {
        return soc;
    }

    public void setSoc(BigDecimal soc) {
        this.soc = soc;
    }

    public BigDecimal getPower() {
        return power;
    }

    public void setPower(BigDecimal power) {
        this.power = power;
    }

    public BigDecimal getServicePrice() {
        return servicePrice;
    }

    public void setServicePrice(BigDecimal servicePrice) {
        this.servicePrice = servicePrice;
    }

    public BigDecimal getServiceAmount() {
        return serviceAmount;
    }

    public void setServiceAmount(BigDecimal serviceAmount) {
        this.serviceAmount = serviceAmount;
    }

    public BigDecimal getElecPrice() {
        return elecPrice;
    }

    public void setElecPrice(BigDecimal elecPrice) {
        this.elecPrice = elecPrice;
    }

    public BigDecimal getElecAmount() {
        return elecAmount;
    }

    public void setElecAmount(BigDecimal elecAmount) {
        this.elecAmount = elecAmount;
    }

    public BigDecimal getChargeAmount() {
        return chargeAmount;
    }

    public void setChargeAmount(BigDecimal chargeAmount) {
        this.chargeAmount = chargeAmount;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedTime() {
        return lastUpdatedTime;
    }

    public void setLastUpdatedTime(Date lastUpdatedTime) {
        this.lastUpdatedTime = lastUpdatedTime;
    }
}